package cc.mrbird.febs.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyWebMvcConfigurerAdapter implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        // /usr/project/estate/net/image/
        // E:/project/房地产项目/images/web
        registry.addResourceHandler("/imagesweb/**").addResourceLocations("file:E:/Project/项目交易平台（项目文件）/房地产项目/images/web/");
        WebMvcConfigurer.super.addResourceHandlers(registry);
    }
}
